#ifndef XMLTRAJECTORYREADER_H
#define XMLTRAJECTORYREADER_H

#include <QXmlStreamReader>
#include <vector>
#include <trajectory.h>

class QIODevice;

class XmlTrajectoryReader
{
public:
	XmlTrajectoryReader(std::vector<mlgesture::Trajectory> *trajectories_);
	bool read(QIODevice *device);
	QString errorString() const;

private:
	QXmlStreamReader xml_;
	std::vector<mlgesture::Trajectory> *trajectories_;
	void readTrajectory();
};

#endif // XMLTRAJECTORYREADER_H
